package com.tanhua.dubbo.api;

import com.tanhua.domain.db.Settings;
import com.tanhua.domain.db.UserInfo;
import com.tanhua.domain.vo.PageResult;

/**
 * 通用设置服务接口
 */
public interface SettingsApi {
    /**
     * 根据用户id获取设置编码、推送喜欢、评论、公告通知
     * @param userId
     * @return
     */
    Settings findByUserId(Long userId);


    /**
     * 通知设置-修改是否通知
     */
    void updateNotification(boolean likeNotification, boolean pinglunNotification, boolean gonggaoNotification, Long userId);

    /**
     * 通知设置-保存
     * @param likeNotification
     * @param pinglunNotification
     * @param gonggaoNotification
     * @param userId
     */
    void save(boolean likeNotification, boolean pinglunNotification, boolean gonggaoNotification, Long userId);


}
